import { Heatmap, Tile, Vector } from "ol/layer";

import { XYZ } from "ol/source";

export function createGaodeBaseLayer() {
  return new Tile({
    source: new XYZ({
      crossOrigin: "anonymous",
      url: "http://wprd0{1-4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x={x}&y={y}&z={z}",
    }),
  });
}

export function createVectorLayer(...args: ConstructorParameters<typeof Vector>) {
  return new Vector(...args);
}

export function createHeatmapLayer(...args: ConstructorParameters<typeof Heatmap>) {
  return new Heatmap(...args);
}



